[[Category:Fritzbot ET]]
==Normal Messages When .bots And .bot Files Are Read==
There are 2 file types used to automatically add predefined bots in FritzBot ET.  The individual bot definitions are stored in individual .bot files contained in the fritzbot/bots directory (Most are stored in that path inside the packed file fritz0.pk3).  Individual bot files can be edited by a text editor. See [[Fritzbot-ET_Bot_File_Format]] for bot file details.  The other file is the "mapname".bots that is loaded when FritzBot ET starts the single map or first map of a campaign ("mapname" being replaced by the actual filename of the bsp file) . When that happens the following messages are printed to the console:<br>
<table>
<tr>
<td bgcolor="#101010">
<font color="#d0d0d0">Reading configs/<b>"mapname"</b>.bots (length:<b>N</b>)<br>
configs/<b>"mapname"</b>.bots successfully parsed! </font>
</td>
</tr>
</table>
Where "mapname' is replaced by the actual filename and N by the actual file length.


But if either the .bots or associated .bot files have errors the following messages may be found in the console;

==Error Messages==
<table border spacing=3>
<tr>
<td bgcolor="white" width="45%">
Console Messages:
</td>
<td>
Possible Reason:
</td>
</tr>
<tr>
<td bgcolor="#101010">
<font color="red">Can't Add bot - Max # of bots reached!!</font><br>
<font color="white">A maximum of 32 bots are allowed!</font><br>
</td>
<td>
- Check/increase <b>g_maxbots</b> setting.<br>
- Check/increase <b>sv_maxclients</b> setting.<br>
- Are you adding bots by a mapname.cfg in a campaign<br>
...and not doing an initial <b>kick allbots</b><br> 
- Try running with fewer bots.  Most waypoints are tested <br>
...or designed for bot teams between 7vs7 and 12vs12 <br>
...and may not play well with more bots.
</td>
</tr>

<tr>
<td bgcolor="#101010">
<font color="red">Can't Add bot - number of clients is already at g_maxBots value!</font><br>
</td>
<td>
- Check/increase <b>g_maxbots</b> setting.<br>
- Check/increase <b>sv_maxclients</b> setting.<br>
</td>
</tr>

<tr>
<td bgcolor="#101010">
<font color="red">Can't Add bot - no path file available!!</font><br>
</td>
<td>
- Verify .nav file exists and not empty.<br>
- Verify .nav is in correct directory (fritzbot/bots/maps).<br>
- If using unpacked .nav files make sure /sv_pure is 0.
</td>
</tr>

<tr>
<td bgcolor="#101010">
<font color="red">Unable to add bot = BOT FILE DOESN'T EXIST!!<br>
Filename = "text"</font><br>
</td>
<td>
- A .bot filename does not match the .bots entry or the /addbot parameter.<br>
- A .bot filename has incorrect type (.bot).<br>
- A .bot file is in wrong path (fritzbot\bots).<br>
- You forgot to set sv_pure 0 to use a Bot file that is not packed in any of the pk3 files.<br>
- Verify that the file is not locked preventing read access.
</td>
</tr>


<tr>
<td bgcolor="#101010">
<font color="red">Error! Bots file is empty!!</font><br>
</td>
<td>
- Bots filename does not match mapname.<br>
- Bots filename has incorrect type (.bots).<br>
- Bots file is in wrong path (fritzbot\configs).<br>
- You forgot to set sv_pure 0 to use a Bots file that is not packed in any of the pk3 files.<br>
- Verify that the file is not locked preventing read access.
</td>
</tr>

<tr>
<td bgcolor="#101010">
<font color="red">Error: no closing brace in bot file or file too long!!!</font><br>
</td>
<td>
- There must be only one opening <b>{</b> and one closing brace <b>}</b><br>
...in the file at either ends. <br>
Check that you have not typed [ or ] or swapped the open for the closing brace by mistake.
</td>
</tr>

<tr>
<td bgcolor="#101010">
<font color="red">Error (line <b>#</b>): class value not valid!! </font><br>
</td>
<td>
- Verify digit following keyword <b>class</b> is between 0 and 4.<br>
- Verify that you have not typed a letter O instead of a digit 0.
</td>
</tr>

<tr>
<td bgcolor="#101010">
<font color="red">Error (line <b>#</b>): weapon value not valid!! </font><br>
</td>
<td>
- Verify value following keyword <b>weapon</b> is between 0 and 11.<br>
- Verify that you have not typed a letter O instead of a digit 0.
</td>
</tr>

<tr>
<td bgcolor="#101010">
<font color="red">Error (line <b>#</b>): team value not valid!! </font><br>
</td>
<td>
- Verify digit following keyword <b>team</b> is between 0 and 1.<br>
- Verify that you have not typed a letter O instead of a digit 0.
</td>
</tr>

<tr>
<td bgcolor="#101010">
<font color="red">WARNING: </font><font color="white">Unable to add bot.  All player slots are in use.</font><br>
<font color="red">WARNING: </font><font color="white">Start server with more 'open' slots (or check setting of sv_maxclients cvar).</font><br>
</td>
<td>
- Check/increase sv_maxclients setting.<br>
</td>
</tr>
</table><br>
Note: Where <font color="red"><b>#</b></font> is the line number in the .bots file, and <font color="red"><b>"text"</b></font> some text

No specific errors are generated for;<br>
Keywords:<br>
MAL_AddBot<br>
funname<br>

==Other Errors When Reading Other Files==

* Errors can also be generated when loading the .aiscript file (see [[Error_Messages_When_Fritzbot-ET_Reads_The_Aiscript]]).

* Or when reading the .nav file (see [[Error_Messages__When_Fritzbot_ET_Reads_The_Nav_File]]).  

* Errors that occur during the game related to actions are listed in [[Error_Messages__When_Fritzbot_ET_Actions_Trigger]].

==More On .bot and .bots Files==

For more on console commands for adding bots see [[FritzBot_ET#In-Game_Console_Commands]].

Bots can also be added by a .cfg file.  See [[FritzBot_ET#Custom_Bot_Configs]] for more info. 

To find out how to use Hobbit's waypointing tool to make a .bots file see [http://www.billnickel.com/WaypointToolGuide/bots.html Bots files].

[http://wiki.bots-united.com/index.php/Error_Messages_When_Fritzbot_ET_Reads_The_Bots_File Permanent link to this page]
[[Category:FritzBot ET]]
